<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:88:"F:\phpstudy_pro\WWW\www.jiefanggongyuan.com\public/../wcapps/index\view\index\index.html";i:1637315635;s:81:"F:\phpstudy_pro\WWW\www.jiefanggongyuan.com\wcapps\index\view\public\web_top.html";i:1637315562;s:77:"F:\phpstudy_pro\WWW\www.jiefanggongyuan.com\wcapps\index\view\public\top.html";i:1637315558;s:76:"F:\phpstudy_pro\WWW\www.jiefanggongyuan.com\wcapps\index\view\public\bt.html";i:1637315550;s:82:"F:\phpstudy_pro\WWW\www.jiefanggongyuan.com\wcapps\index\view\public\footerjs.html";i:1637315554;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo $configs['WEBNAME']; ?></title>  
        <link rel="stylesheet" href="/static/pc/layui/css/layui.css" />
<link rel="stylesheet" href="/static/pc/css/main.css">        
<link rel="stylesheet" href="/static/pc/css/wow.css">
<link rel="stylesheet" href="/static/pc/css/swiper.min.css">
<script>
    (function () {
        var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'; 
        var docEl = document.documentElement;
        function resizeFn() {   
            var docW = docEl.clientWidth;   
            if (docW > 1920) {  
                docW = 1920 
            }   
            docEl.style.fontSize = (docW * 100 / 1920) + 'px';  
        }   
        resizeFn();     
        window.addEventListener(resizeEvt, resizeFn);   
    })();           
</script>
<?php 
    $backurl = request()->url(true);
 ?>
        <link rel="stylesheet" href="/static/pc/css/index.css">
    </head>
    <body>
        <?php 
     $backurl = request()->url(true);
     $controller = request()->controller();
     $action = request()->action();
     $class0001="";$class0002="";$class0003="";$class0004="";$class0005="";$class0006="";$class0007="";
     $class0008="";$class0009="";
     $soutype = 4;
     if($controller=="Index"){
        $class0001 = 'active';
     }
     if($controller=="Jingqujieshao" or $controller=="Jingqurongyu"){
        $class0002 = 'active';
        $soutype = 1;
     }
     if($controller=="Jingqupiaowu"){
        $class0003 = 'active';
        $soutype = 5;
     }
     if($controller=="Zoujinjingqu"||$controller=="Jingquyingshi"||$controller=="Quanjing"){
        $class0004 = 'active';
        $soutype = 3;
     }
     if($controller=="Jingqugonglue"){
        $class0005 = 'active';
        $soutype = 4;
     }
     if($controller=="News"){
        $class0006 = 'active';
        $soutype = 5;
     }     
     if($controller=="Liulanfuwu"){
        $class0007 = 'active';
        $soutype = 6;
     }
     if($controller=="Service"||$controller=="Liuyan"||$controller=="Toushu"||$controller=="Wenjuan"){
        $class0008 = 'active';
        $soutype = 4;
     }
     if($controller=="About"||$controller=="Contact"){
        $class0009 = 'active';
        $soutype = 4;
     }
 ?>
<div class="topbox">
    <div class="box1">
        <img src="/<?php echo $configs['logo']; ?>" class="logo"/>
        <div class="txt">
            <div class="txt2">
                <input type="text" class="input-1" name="title" id="title" value="<?php echo !empty($title)?$title:''; ?>" placeholder="请输入关键词" />
                <input type="hidden" name="soutype" id="soutype" value="<?php echo $soutype; ?>">
                <input type="button" class="input-2" value="&#xe602;"  onclick="search1();"/>
            </div>
            <div class="txt1"> <a href="<?php echo url('index/index/index'); ?>">中文</a> |  <a href="###">Englis</a></div>
        </div>
        <div class="layui-nav"> 
            <li class="layui-nav-item <?php echo $class0001; ?>">
                <a href="<?php echo url('index/index/index'); ?>" >首页</a>  
            </li>
            <li class="layui-nav-item <?php echo $class0002; ?>">
                <a href="<?php echo url('index/jingqujieshao/index'); ?>">景区介绍</a>    
                <dl class="layui-nav-child">
                    <dd><a href="<?php echo url('index/jingqujieshao/index'); ?>">景区概况</a></dd>
                    <dd><a href="<?php echo url('index/jingqurongyu/index'); ?>">景区荣誉</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item <?php echo $class0003; ?>">
                <a href="<?php echo url('index/jingqupiaowu/index'); ?>">景区票务</a>    
                <dl class="layui-nav-child">
                    <?php if(is_array($piaofuRes) || $piaofuRes instanceof \think\Collection || $piaofuRes instanceof \think\Paginator): $i = 0; $__LIST__ = $piaofuRes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <dd><a href="<?php echo url('index/jingqupiaowu/index',array('id'=>$vo['id'])); ?>"><?php echo $vo['name']; ?></a></dd>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </dl>
            </li>
            <li class="layui-nav-item <?php echo $class0004; ?>">
                <a href="<?php echo url('index/zoujinjingqu/index'); ?>">走进景区</a>
                <dl class="layui-nav-child">
                    <?php if(is_array($typeRes[96]) || $typeRes[96] instanceof \think\Collection || $typeRes[96] instanceof \think\Paginator): $i = 0; $__LIST__ = $typeRes[96];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <dd><a href="<?php echo url('index/zoujinjingqu/index',array('cid'=>$vo['id'])); ?>"><?php echo $vo['name']; ?></a></dd>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    <dd><a href="<?php echo url('index/jingquyingshi/index'); ?>">景区影视</a></dd>
                    <dd><a href="<?php echo url('index/quanjing/index'); ?>">720度全景</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item <?php echo $class0005; ?>">
                <a href="<?php echo url('index/jingqugonglue/index'); ?>">景区攻略 </a>
                <dl class="layui-nav-child">
                    <?php if(is_array($typeRes[90]) || $typeRes[90] instanceof \think\Collection || $typeRes[90] instanceof \think\Paginator): $i = 0; $__LIST__ = $typeRes[90];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <dd><a href="<?php echo url('index/jingqugonglue/index',array('cid'=>$vo['id'])); ?>"><?php echo $vo['name']; ?></a></dd>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </dl>
            </li>
            <li class="layui-nav-item <?php echo $class0006; ?>">
                <a href="<?php echo url('index/news/index'); ?>">景区资讯</a>
                <dl class="layui-nav-child">
                    <?php if(is_array($typeRes[5]) || $typeRes[5] instanceof \think\Collection || $typeRes[5] instanceof \think\Paginator): $i = 0; $__LIST__ = $typeRes[5];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <dd><a href="<?php echo url('index/news/index',array('cid'=>$vo['id'])); ?>"><?php echo $vo['name']; ?></a></dd>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </dl>
            </li>
            <li class="layui-nav-item <?php echo $class0007; ?>">
                <a href="<?php echo url('index/liulanfuwu/index'); ?>">游览服务</a>
                <dl class="layui-nav-child">
                    <?php if(is_array($typeRes[81]) || $typeRes[81] instanceof \think\Collection || $typeRes[81] instanceof \think\Paginator): $i = 0; $__LIST__ = $typeRes[81];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <dd><a href="<?php echo url('index/liulanfuwu/index',array('cid'=>$vo['id'])); ?>"><?php echo $vo['name']; ?></a></dd>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </dl>
            </li>
            <li class="layui-nav-item <?php echo $class0008; ?>">
                <a href="<?php echo url('index/service/index'); ?>">服务中心</a>
                <dl class="layui-nav-child">
                    <dd><a href="<?php echo url('index/service/index'); ?>">常见问题</a></dd>
                    <dd><a href="<?php echo url('index/service/map'); ?>">景区地图</a></dd>
                    <dd><a href="<?php echo url('index/liuyan/index'); ?>">留言评价</a></dd>
                    <dd><a href="<?php echo url('index/toushu/index'); ?>">在线投诉</a></dd>
                    <dd><a href="<?php echo url('index/wenjuan/index'); ?>">问卷调查</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item lastchild <?php echo $class0009; ?>">
                <a href="<?php echo url('index/about/index'); ?>"  style="padding-right: 0;">关于我们</a>
                <dl class="layui-nav-child">
                    <dd><a href="<?php echo url('index/about/index'); ?>">公司介绍</a></dd>
                    <dd><a href="<?php echo url('index/contact/index'); ?>">联系我们</a></dd>
                </dl>
            </li>
        </div>
    </div>
    <div class="clearboth"></div>
</div>

        <!-- 顶部幻灯片 -->
        <div class="flashbox">
            <div class="swiper-container">
                <div class="swiper-wrapper">
                    <?php if(is_array($flashRes) || $flashRes instanceof \think\Collection || $flashRes instanceof \think\Paginator): $i = 0; $__LIST__ = $flashRes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                       <a href="<?php echo $vo['url']; ?>" title="<?php echo $vo['name']; ?>"  class="swiper-slide">
                        <img src="/<?php echo $vo['imgpath']; ?>" alt="<?php echo $vo['name']; ?>" />
                       </a>
                       <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
                <!-- Add Pagination -->
                <div class="swiper-pagination"></div>
            </div>          
        </div>
        <!-- 内容部分 -->
        <div class="box">
            <div class="index_news">
                <div class="txt-title">
                    资讯 · 信息
                </div>
                <div class="index_news_1">
                    <img src="/<?php echo $configs['logoad']; ?>" class="pic" />
                    <div class="txt">
                        <?php echo $configs['xinxigonggao1']; ?>
                    </div>
                </div>
                <div class="index_news_2">
                    <div class="index_news_2_1">
                        <div class="swiper-container">
                            <div class="swiper-wrapper">
                               <?php if(is_array($flashRes2) || $flashRes2 instanceof \think\Collection || $flashRes2 instanceof \think\Paginator): $i = 0; $__LIST__ = $flashRes2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                               <a href="<?php echo $vo['url']; ?>" title="<?php echo $vo['name']; ?>"  class="swiper-slide">
                                <img src="/<?php echo $vo['imgpath']; ?>" alt="<?php echo $vo['name']; ?>" />
                                <div class="txt">
                                  <?php echo $vo['name']; ?>
                                </div>
                               </a>
                               <?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>
                            <!-- Add Pagination -->
                            <div class="swiper-pagination"></div>
                        </div>          
                    </div>
                    <div class="index_news_2_2">
                        <div class="index_news_2_2_1">
                            <?php if(is_array($typeRes[5]) || $typeRes[5] instanceof \think\Collection || $typeRes[5] instanceof \think\Paginator): $k = 0;$__LIST__ = is_array($typeRes[5]) ? array_slice($typeRes[5],0,6, true) : $typeRes[5]->slice(0,6, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>
                            <div class="item <?php if($k == 1): ?> active <?php endif; ?>"><?php echo $vo['name']; ?></div>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                        <div class="index_news_2_2_2">
                            <?php if(is_array($typeRes[5]) || $typeRes[5] instanceof \think\Collection || $typeRes[5] instanceof \think\Paginator): $k = 0;$__LIST__ = is_array($typeRes[5]) ? array_slice($typeRes[5],0,6, true) : $typeRes[5]->slice(0,6, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>
                            <div <?php if($k == 1): ?> class="showdiv" <?php endif; ?>>
                                <?php 
                                    $newslist = model("News")->getIndexNews($vo['id'],6);
                                 if(is_array($newslist) || $newslist instanceof \think\Collection || $newslist instanceof \think\Paginator): $i = 0; $__LIST__ = $newslist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                <li class="item">
                                    <a href="<?php echo url('index/news/show',array('id'=>$vo['id'])); ?>" target="_blank"><?php echo $vo['name']; ?></a>
                                    <span><?php echo date('Y-m-d',$vo['addtime']); ?></span>
                                </li>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clearboth"></div>
        </div>
        <div class="index_about_box">
            <div class="box">
                <div class="index_about">
                    <h2>海南解放公园</h2>
                    <p>
                        <?php echo $abouts['description']; ?>
                    </p>
                    <a href="<?php echo url('index/about/index'); ?>" class="more">查看更多</a>
                    <img src="/<?php echo $abouts['imgpath']; ?>" class="pic" />
                </div>
            </div>
            <div class="clearboth"></div>
        </div>
        <div class="box">
            <div class="index_fengguang">
                <div class="txt-title">
                    景区 · 风光
                </div>
                <?php 
                    $fengguanglist = model("Zhimingjingqu")->getIndexNews(98,6);
                 ?>
                <div class="items">
                    <?php if(is_array($fengguanglist) || $fengguanglist instanceof \think\Collection || $fengguanglist instanceof \think\Paginator): $k = 0;$__LIST__ = is_array($fengguanglist) ? array_slice($fengguanglist,0,6, true) : $fengguanglist->slice(0,6, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;
                        $imgpaths = getImgpath($vo['imgpath_arr']);
                        $imgpath = "/static/pc/img/none.jpg";
                        if($imgpaths!="") $imgpath = "/".$imgpaths;
                     ?>  
                    <a href="<?php echo url('index/zoujinjingqu/show',array('id'=>$vo['id'])); ?>" target="_blank" class="item">
                        <img src="<?php echo $imgpath; ?>" class="pic" />
                        <div class="txt"><?php echo $vo['name']; ?></div>
                        <div class="txt1">
                            <h3><?php echo $vo['name']; ?></h3>
                            <p>
                                <?php echo $vo['description']; ?>
                            </p>
                            <div class="more">查看更多</div>
                        </div>
                    </a>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </div>
            <div class="clearboth"></div>
        </div>
        <div class="index_fuwuhudong_box">
            <div class="box">
                <div class="index_fuwuhudong">
                    <div class="txt-title" style="color: #FFF;">
                        景区 · 风光
                    </div>
                    <div class="items">
                        <a href="<?php echo url('index/service/map'); ?>" class="item">
                            <div class="bg"></div>
                            <div class="bg1">
                                <div class="txt1 layui-anim">&#xe9c0;</div>
                                <div class="txt2">景区地图</div>
                            </div>
                        </a>
                        <a href="<?php echo url('index/liulanfuwu/index',array('cid'=>84)); ?>" class="item">
                            <div class="bg"></div>
                            <div class="bg1">
                                <div class="txt1 layui-anim">&#xe9d5;</div>
                                <div class="txt2">交通指南</div>
                            </div>
                        </a>
                        <a href="<?php echo url('index/service/index'); ?>" class="item">
                            <div class="bg"></div>
                            <div class="bg1">
                                <div class="txt1 layui-anim">&#xe8bb;</div>
                                <div class="txt2">常见问题</div>
                            </div>
                        </a>
                        <a href="<?php echo url('index/liuyan/index'); ?>" class="item">
                            <div class="bg"></div>
                            <div class="bg1">
                                <div class="txt1 layui-anim">&#xe60e;</div>
                                <div class="txt2">留言评价</div>
                            </div>
                        </a>
                        <a href="<?php echo url('index/toushu/index'); ?>" class="item">
                            <div class="bg"></div>
                            <div class="bg1">
                                <div class="txt1 layui-anim">&#xe60b;</div>
                                <div class="txt2">在线投诉</div>
                            </div>
                        </a>
                        <a href="<?php echo url('index/wenjuan/index'); ?>" class="item">
                            <div class="bg"></div>
                            <div class="bg1">
                                <div class="txt1 layui-anim">&#xe68d;</div>
                                <div class="txt2">问卷调查</div>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="clearboth"></div>
            </div>
        </div>
        <div class="box">
            <div class="index_lvyouziyuan">
                <div class="txt-title">
                    旅游 · 资源
                </div>
                <div class="items">
                   <?php if(is_array($flashRes3) || $flashRes3 instanceof \think\Collection || $flashRes3 instanceof \think\Paginator): $i = 0; $__LIST__ = $flashRes3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                   <a href="<?php echo $vo['url']; ?>" title="<?php echo $vo['name']; ?>"  class="item">
                        <img src="/<?php echo $vo['imgpath']; ?>" class="pic" />
                        <div class="txt"><?php echo $vo['name']; ?></div>
                    </a>
                   <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </div>
            <div class="clearboth"></div>
        </div>
        <!-- 内容部分结束 -->
        <!-- 网站底部 -->
        <div class="bt_box">
<div class="box">
    <div class="bt">
        <div class="bt-1">
            <a href="<?php echo url('index/index/index'); ?>" class="item">网站首页</a>
            <a href="<?php echo url('index/jingqujieshao/index'); ?>" class="item">景区介绍</a>
            <a href="<?php echo url('index/jingqupiaowu/index'); ?>" class="item">景区票务</a>
            <a href="<?php echo url('index/zoujinjingqu/index'); ?>" class="item">走进景区</a>
            <a href="<?php echo url('index/jingqugonglue/index'); ?>" class="item">景区攻略</a>
            <a href="<?php echo url('index/news/index'); ?>" class="item">景区资讯</a>
            <a href="<?php echo url('index/liulanfuwu/index'); ?>" class="item">游览服务</a>
            <a href="<?php echo url('index/service/index'); ?>" class="item">服务中心</a>
            <a href="<?php echo url('index/about/index'); ?>" class="item">关于我们</a>
        </div>
        <div class="bt-2">
            <div class="bt-2-1">
                <h2>咨询服务热线：</h2>
                <div class="bt_tel">
                    <?php echo $configs['MOBILE']; ?>
                </div>
                <div class="txt">
                    地址：<?php echo $configs['address']; ?><br/>
                    投诉举报电话：<?php echo $configs['MOBILE2']; ?>   Email：<?php echo $configs['EMAIL']; ?>
                </div>
            </div>
            <div class="bt-2-2">
                <img src="/<?php echo $configs['erweima2']; ?>" class="img" />
                <div class="txt">官方微博</div>
            </div>
            <div class="bt-2-2" style="right: 0;">
                <img src="/<?php echo $configs['erweima1']; ?>" class="img" />
                <div class="txt">官方微信公众号</div>
            </div>
        </div>
        <div class="bt-3">            
            <a href="javascript:;">友情链接：</a>
            <?php if(is_array($linkRes) || $linkRes instanceof \think\Collection || $linkRes instanceof \think\Paginator): $i = 0; $__LIST__ = $linkRes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <a href="<?php echo $vo['url']; ?>" target="_blank" title="<?php echo $vo['name']; ?>"><?php echo $vo['name']; ?></a>  
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>          
</div>
</div>
<div class="clearboth"></div>
<div class="footer_box">
<div class="box">
    <div class="footer">
        网站访问量：<?php echo $configs['fangwenliang']; ?><br/>
        Copyright © 2021 <?php echo $configs['WEBNAME']; ?> 版权所有  <a href="https://beian.miit.gov.cn/" target="_blank"><?php echo $configs['ICP']; ?></a>
    </div>
    <div class="clearboth"></div>
</div>
</div>
    </body>
    <script src="/static/pc/layui/layui.js"></script>
<script src="/static/pc/js/main.js"></script>
<script src="/static/pc/js/wow.js"></script>
<script src="/static/pc/js/swiper.min.js"></script>
<script src="/static/pc/js/jquery-1.11.3.min.js"></script>
<script>
	var swiper = new Swiper('.flashbox .swiper-container', {
	  spaceBetween: 30,
	  centeredSlides: true,
	  autoplay: {
	    delay: 2500,
	    disableOnInteraction: false,
	  },
	  pagination: {
	    el: '.flashbox .swiper-pagination',
	    clickable: true,
	  },
	}); 
	if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){
	    new WOW().init();
	};
    document.onkeydown = function (e) { // 回车提交表单
        // 兼容FF和IE和Opera
        var theEvent = window.event || e;
        var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
        if (code == 13) {
            //触发搜索
            search1();
        }
    }

	function search1(){
        title= $("#title").val();
        soutype= $("#soutype").val();
        if(title!=""){
         if(soutype==1){
         	var str = "<?php echo url('index/Jingqujieshao/lst',array('cid'=>0,'title'=>'titles')); ?>"; 
         } 
         if(soutype==3){
            var str = "<?php echo url('index/Zoujinjingqu/index',array('cid'=>0,'title'=>'titles')); ?>"; 
         } 
         if(soutype==4){
            var str = "<?php echo url('index/Jingqugonglue/index',array('cid'=>0,'title'=>'titles')); ?>"; 
         }
         if(soutype==5){
            var str = "<?php echo url('index/news/index',array('cid'=>0,'title'=>'titles')); ?>"; 
         } 
         if(soutype==6){
            var str = "<?php echo url('index/liulanfuwu/index',array('cid'=>0,'title'=>'titles')); ?>"; 
         }         
         str1 =  str.replace("titles",title);
         window.location.href=str1;
        }
    }
</script>
    <script>
        var swiper = new Swiper('.index_news_2_1 .swiper-container', {
          spaceBetween: 30,
          centeredSlides: true,
          autoplay: {
            delay: 1500,
            disableOnInteraction: false,
          },
          pagination: {
            el: '.index_news_2_1 .swiper-pagination',
            clickable: true,
          },
        }); 
    </script>
</html>
